<?php include("header.php"); ?>
	<div id="layout">
<?php include("sidebar.php"); ?>
		<div class="main">
			<div class="fouryears">
				<h1><a href="./?cate-wanzhuansinian.htm">玩转四年</a></h1>
				<div class="yi">
					<div class="fouryears_pic">
						<p><a href="./?class-<?=getinfo(245,'englishname','categories')?>.htm">衣妆美食</a></p>
					</div>
					<div class="fouryears_list">
						<ul>
							<?=listnewsbycid('245','40','2')?>
							<?=listnewsbycid('240','40','3')?>
						</ul>
					</div>
				</div>
				<div class="shi">
					<div class="fouryears_pic">
						<p><a href="./?class-<?=getinfo(241,'englishname','categories')?>.htm">游玩乐购</a></p>
					</div>
					<div class="fouryears_list">
						<ul>
							<?=listnewsbycid('241','40','2')?>
							<?=listnewsbycid('242','40','3')?>
						</ul>
					</div>
				</div>
				<div class="wan">
					<div class="fouryears_pic">
						<p><a href="./?class-<?=getinfo(259,'englishname','categories')?>.htm">校园速递</a></p>
					</div>
					<div class="fouryears_list">
						<ul>
							<?=listnewsbycid('259','40','5')?>
						</ul>
					</div>					
				</div>
				<div class="le">
					<div class="fouryears_pic">
						<p><a href="./?class-<?=getinfo(260,'englishname','categories')?>.htm">赛事风云</a></p>
					</div>
					<div class="fouryears_list">
						<ul>
							<?=listnewsbycid('260','40','5')?>
						</ul>
					</div>					
				</div>
			</div>
			<h1 class="mv_title"><a href="./?class-<?=getinfo(231,'englishname','categories')?>.htm">艺海拾贝</a></h1>
			<div class="music">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=231 ORDER BY `essay_updatetime` DESC LIMIT 0,3";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];
	$intro=$row['essay_intro'];

?>
				<div class="mv_list">
					<img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" />
					<div class="mv_content">
						<h2><a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','40')?></a></h2>
						<p>简介：<span class="mv_main"><?=utf8Substr($intro,'0','80')?></span></p>
					</div>
				</div>
<?php } ?>
			</div>
			<h1 class="mv_title"><a href="./?class-<?=getinfo(232,'englishname','categories')?>.htm">新碟上架</a></h1>
			<div class="music">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=232 ORDER BY `essay_updatetime` DESC LIMIT 0,3";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
	$intro=$row['essay_intro'];
    $content=$row['essay_content'];

?>
				<div class="mv_list">
					<img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" />
					<div class="mv_content">
						<h2><a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','40')?></a></h2>
						<p>简介：<span class="mv_main"><?=utf8Substr($intro,'0','80')?></span></p>
					</div>
				</div>
<?php } ?>
			</div>
			<div class="school_job">
				<h1><a href="./?class-<?=getinfo(233,'englishname','categories')?>.htm">校园指南</a></h1>
				<ul>
					<?=listnewsbycid('233','70','4')?>
				</ul>
			</div>
			<div class="school_job">
				<h1><a href="./?class-<?=getinfo(234,'englishname','categories')?>.htm">就业兼职</a></h1>
				<ul>
					<?=listnewsbycid('234','70','4')?>
				</ul>
			</div>
		</div>
<?php include("footer.php"); ?>
